package com.hu.zhcc.shiro.entity.xsx;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 健康方案
 * </p>
 *
 * @author xsx
 * @since 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XsxTHealthPlan extends Model<XsxTHealthPlan> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编码
     */
    private String code;
    /**
     * 标题
     */
    private String title;
    /**
     * 关键词
     */
    private String keywords;
    /**
     * 方案类别id,引用健康类型方案的id
     */
    @TableField("typeId")
    private Integer typeId;
    /**
     * 内容
     */
    private String content;
    /**
     * 状态，0启用，1禁用
     */
    private Integer state;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
